@import "./vars.scss";

/* fcm-list em-list页面通用 */
.fcm-header {
  .whiteImg {
    filter: grayscale(100%) brightness(250%);
  }
  .fcm-header-footer {
    position: absolute;
    bottom: 60px;
    width: 100%;
    left: 0;
    right: 0;
    @include display(flex);
    @include justify-content(center);
    .hef-item {
      width: 190px;
      height: 109px;
      margin-right: 30px;
      @include display(flex);
      @include flex-direction(column);
      @include justify-content(center);
      @include align-items(center);
      background-color: rgba(255, 255, 255, 0.15);
      font-size: 15px;
      @include user-select(none);
      @include transition(background-color 0.3s);
      cursor: pointer;
      &:last-child {
        margin-right: 0;
      }
      .iconfont {
        font-size: 30px;
        margin-bottom: 18px;
        width: 30px;
        img {
          width: 100%;
        }
      }
      &.on,
      &:hover {
        background-color: $active;
      }
    }
  }
}

.fcm-container {
  @include display(flex);

  .fcm-aside {
    width: 335px;
    color: $color14;
    @include flex-basis(335px);
    padding-left: 85px;
    .fcm-aside-title {
      @include display(flex);
      @include justify-content(space-between);
      @include align-items(center);
      padding-top: 45px;
      color: $color15;
      padding-bottom: 42px;
    }
    
    .fcm-aside-item {
      margin-top: 32px;
      font-size: 16px;
      max-width: 200px;
      word-break: break-all;
      font-weight: 500;
      @include transition(color 0.3s);
      a {
        position: relative;
        &::before {
          content: "";
          position: absolute;
          bottom: -3px;
          left: 0;
          width: 0;
          height: 1px;
          @include transition(width 0.3s);
          background-color: $active;
        }
      }
      &.on,
      &:hover {
        a {
          display: inline-block;
          color: $active;
          &::before {
            width: 100%;
          }
        }
      }
    }
  }
  .fcm-list {
    @include flex(1);
    border-left: 1px solid $border3;
    padding: 118px 42px 160px 63px;
  }
}

@media screen and (max-width: 768px) {
  .fcm-header .fcm-header-footer .hef-item {
    width: 120px;
    margin-right: 15px;
    text-align: center;
  }
  .fcm-header .fcm-header-footer {
    display: none;
    bottom: 20px;
  }
  .fcm-aside .fcm-aside-container {
    padding-bottom: 20px;
    margin: 0;
    @include display(flex);
    @include flex-wrap(wrap);
    @include flex-direction(column);
    &::after {
      content: "";
      height: 1px;
      width: 100%;
      margin: 10px 0;
      background-color: #eee;
    }
  }
  .fcm-container {
    @include flex-direction(column);
  }
  .fcm-container .fcm-aside {
    width: 100%;
    padding: 0 15px;
    flex-basis: unset;
  }
  .fcm-container .fcm-aside .fcm-aside-title {
    padding: 0;
    height: 70px;
    font-size: 26px;
  }
  .fcm-container .fcm-list {
    padding: 0;
    border-left: 0;
  }
  .fcm-container .fcm-aside .fcm-aside-item {
    width: 100%;
    margin-top: 0;
    padding: 10px 15px;
    max-width: unset;
  }
}
